﻿<Window x:Class="QuickTweet.Views.AboutView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        xmlns:behaviors="clr-namespace:QuickTweet.Common.Behaviors;assembly=QuickTweet.Common"
        Title="About Quick Tweet" Height="205" Width="400" WindowStartupLocation="CenterScreen" 
        WindowStyle="SingleBorderWindow" ResizeMode="NoResize" Icon="/QuickTweet;component/Icons/About.png">
    <i:Interaction.Behaviors>
        <behaviors:WindowCloseBehavior OKCloseButton="{Binding ElementName=CloseButton}" />
    </i:Interaction.Behaviors>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Image Margin="10" Grid.RowSpan="2" VerticalAlignment="Top" Source="/QuickTweet;component/Icons/AppIcon_Large.ico" Height="68" Width="68"></Image>
        <StackPanel Grid.Column="1" Orientation="Vertical" Margin="5">
            <TextBlock Text="{Binding Path=ApplicationName}" FontWeight="Bold" Margin="5"></TextBlock>
            <TextBlock Text="{Binding Path=ApplicationVersion}" Margin="5 0 0 0"></TextBlock>
        </StackPanel>
        <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Vertical" Margin="5">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Home Page:" Margin="5"></TextBlock>
                <TextBlock Margin="0 5 5 5"> 
                    <Hyperlink x:Name="SiteUrl" NavigateUri="http://quicktweet.codeplex.com" Command="{Binding Path=NavigateCommand}" CommandParameter="{Binding Path=NavigateUri, RelativeSource={RelativeSource Self}}">                        
                        <TextBlock Text="{Binding ElementName=SiteUrl, Path=NavigateUri}"></TextBlock>
                    </Hyperlink>
                </TextBlock>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="E-mail:" Margin="5 0 5 0">
                </TextBlock>
                <TextBlock> 
                    <Hyperlink x:Name="AuthorMail" NavigateUri="mailto:marco.minerva@gmail.com" Command="{Binding Path=NavigateCommand}" CommandParameter="{Binding Path=NavigateUri, RelativeSource={RelativeSource Self}}">
                        <TextBlock Text="marco.minerva@gmail.com"></TextBlock>
                    </Hyperlink>
                </TextBlock>
            </StackPanel>
        </StackPanel>
        <StackPanel Grid.Row="3" Grid.ColumnSpan="2" Orientation="Horizontal" Margin="5 0 0 0">
            <TextBlock Text="Thanks to" Margin="5 0 5 0">
            </TextBlock>
            <TextBlock> 
                    <Hyperlink x:Name="IconUrl" NavigateUri="http://www.doublejdesign.co.uk/" Command="{Binding Path=NavigateCommand}" CommandParameter="{Binding Path=NavigateUri, RelativeSource={RelativeSource Self}}">
                        <TextBlock Text="Double-J Desing"></TextBlock>
                    </Hyperlink>
                </TextBlock>
            <TextBlock Text="for the application icon" Margin="3 0 5 0">
            </TextBlock>
        </StackPanel>
        <Button Grid.Row="2" Grid.Column="1" Content="_Close" Margin="10"
                IsCancel="True" IsDefault="True" Name="CloseButton" HorizontalAlignment="Right"></Button>

    </Grid>
</Window>
